//
//  WJBPackagingSize.m
//  VariousPlay
//
//  Created by dllo on 15/12/22.
//  Copyright © 2015年 wangjingbo. All rights reserved.
//

#import "WJBPackagingSize.h"

@implementation WJBPackagingSize
+(CGSize)labelRectWithSize:(CGSize)size
                 LabelText:(NSString *)labelText
                      Font:(UIFont *)font{
    
    NSDictionary  *dic = [NSDictionary dictionaryWithObjectsAndKeys:font, NSFontAttributeName, nil];
    CGSize actualsize = [labelText boundingRectWithSize:size options:NSStringDrawingUsesLineFragmentOrigin attributes:dic context:nil].size;
    
    
    return actualsize;
}
@end
